dofile("Scripts/UI/DisableAll.lua")


GUI_RegisterPanel(map_selector_panels.screen)
GUI_CreatePanel()
GUI_SetLocation(110, 110, window.w - 220, window.h - 220)
GUI_SetColor("100, 100, 125, 90")
GUI_SetFadeTime(.8)
GUI_SetButtonDimensions(150, 50)

-- This mini-panel encompases the entire screen
GUI_AddMiniPanel(0, 0, window.w, window.h, "140, 140, 140")
-- This mini-panel creates the border around the actual panel
GUI_AddMiniPanel(90, 90, window.w - 180, window.h - 180, "102, 102, 102, 155")
-- This mini-panel is the actual panel
GUI_AddMiniPanel(100, 100, window.w - 200, window.h - 200, "100, 100, 125, 90")


--GUI_AddMiniPanel(100, 100, window.w - 200, window.h - 200, "100, 100, 125, 90")





GUI_ActivatePanel()





---- Items that are not recreated
GUI_RegisterPanel(map_selector_panels.notrec)
GUI_CreatePanel()
GUI_SetLocation(10, window.h - 60, 150, 50)
GUI_SetColor("none")
GUI_SetFadeTime(100)
GUI_SetButtonDimensions(150, 50)
----- Close Button
GUI_AddButton(map_selector_panels.close, "b_style2", "b_style2_m")
GUI_AddText("Close", "194, 194, 149", "crystal")
----- Map Selection Text
local message = "Map Selection"
local x = (window.w / 2) - (GetFontWidth("onuava_big", message) / 2)
local y = 25
GUI_AddText(x, y, message, "204, 204, 204", "onuava_big")
x, y, message = nil, nil, nil -- garbage collector
----- Please select... text
local message = "Please select the level to load."
local x = (window.w / 2) - (GetFontWidth("crystal", message) / 2)
local y = 90 - GetFontHeight("crystal")
GUI_AddText(x, y, message, "194, 194, 194", "crystal")
x, y, message = nil, nil, nil -- garbage collector
-----
GUI_ActivatePanel()